package com.fitness.entity;

import java.io.Serializable;

/**
 * 会员实体类，对应数据库中的会员表
 */
public class Member implements Serializable {
    private Integer memberId; // 会员ID，对应数据库 会员ID 字段
    private String memberName; // 会员姓名，对应数据库 会员姓名 字段
    private String phone; // 联系电话，对应数据库 联系电话 字段
    private Integer points; // 积分，对应数据库 积分 字段
    private String membershipLevel; // 会员等级，对应数据库 会员等级 字段
    private Double discountRate; // 折扣率，对应数据库 折扣率 字段

    // Getter 和 Setter 方法
    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public String getMembershipLevel() {
        return membershipLevel;
    }

    public void setMembershipLevel(String membershipLevel) {
        this.membershipLevel = membershipLevel;
    }

    public Double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Double discountRate) {
        this.discountRate = discountRate;
    }

    // 重写 toString 方法，方便打印查看对象内容
    @Override
    public String toString() {
        return "Member{" +
                "memberId=" + memberId +
                ", memberName='" + memberName + '\'' +
                ", phone='" + phone + '\'' +
                ", points=" + points +
                ", membershipLevel='" + membershipLevel + '\'' +
                ", discountRate=" + discountRate +
                '}';
    }
}